<html>
<head><meta charset="utf-8"><title>Why does hir::IsAuto exist? · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Why.20does.20hir.3A.3AIsAuto.20exist.3F.html">Why does hir::IsAuto exist?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="244953743"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Why%20does%20hir%3A%3AIsAuto%20exist%3F/near/244953743" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Why.20does.20hir.3A.3AIsAuto.20exist.3F.html#244953743">(Jul 05 2021 at 16:19)</a>:</h4>
<p>It's just a boolean: <a href="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/hir/enum.IsAuto.html">https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/hir/enum.IsAuto.html</a>. Why make it a separate type?</p>



<a name="244955893"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Why%20does%20hir%3A%3AIsAuto%20exist%3F/near/244955893" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Why.20does.20hir.3A.3AIsAuto.20exist.3F.html#244955893">(Jul 05 2021 at 16:44)</a>:</h4>
<p>Probably gets passed as a parameter to some functions, where "true" or "false" can be a bit ambiguous</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>